package com.bml.www.teacher.teacher;

import android.graphics.Color;
import android.os.Bundle;
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.bml.www.teacher.R;
import com.bml.www.teacher.account.utils.FragmentUtils;
import com.pachong.android.baseuicomponent.activity.BaseActivity;

public class MyIncomeActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initToolsBar();
    }

    private void initToolsBar() {
        getCustomToolbar().setTitle("我的收益");
        getCustomToolbar().setBackgroundColor(Color.parseColor("#f3d120"));
        getCustomToolbar().addLeftImageButton(getResources().getDrawable(R.mipmap.backby),
        new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
    }

    @Override
    public View createDataView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view= inflater.inflate(R.layout.activity_my_income,null);
        FragmentUtils.addFirstFragment(getSupportFragmentManager(),R.id.incomeContainer,new IncomeFragment());
        return view;
    }
}
